
#import <UIKit/UIKit.h>
#import "QiMingADXDataModel.h"
#import "QiMingADXExpressViewRegisterProtocol.h"
#import "QiMingADXCommonDefine.h"
#import "QiMingADXClickPointModel.h"

NS_ASSUME_NONNULL_BEGIN
@class QiMingADXNativeExpressView;
@protocol QiMingADXNativeExpressViewDelegate <NSObject>
- (void)qimingadxExpressAdViewClick:(QiMingADXNativeExpressView *)expressAdView clickPoints:(QiMingADXClickPointModel *)points optimize:(BOOL)optimize;
- (void)qimingadxExpressAdViewClose:(QiMingADXNativeExpressView *)expressAdView;
- (void)qimingadxExpressAdViewRenderSucceed:(QiMingADXNativeExpressView *)expressAdView;
- (void)qimingadxExpressAdViewRenderFail:(QiMingADXNativeExpressView *)expressAdView error:(NSError *)error;
// 视频信息流相关
- (void)qimingadxExpressAdViewVideoStartPlay:(QiMingADXNativeExpressView *)expressAdView;
- (void)qimingadxExpressAdViewVideoPlayFail:(QiMingADXNativeExpressView *)expressAdView error:(NSError *)error;
- (void)qimingadxExpressAdViewVideoPause:(QiMingADXNativeExpressView *)expressAdView;
- (void)qimingadxExpressAdViewVideoFinish:(QiMingADXNativeExpressView *)expressAdView;

@end

@interface QiMingADXNativeExpressView : UIView<QiMingADXExpressViewRegisterProtocol>


- (instancetype)initWithAdData:(QiMingADXDataModel *)adData;

@property (nonatomic, strong) NSValue *insetsValue;

@property (nonatomic, assign) CGFloat adWidth;

@property (nonatomic, weak) id<QiMingADXNativeExpressViewDelegate> delegate;

@property (nonatomic, strong) QiMingADXDataModel *nativeAdData;

@property (nonatomic, assign) BOOL playMute;

@property(nonatomic ,assign) BOOL autoPlay;

@property (nonatomic, assign) QiMingADXRenderType renderType;



/*
 移除擦一擦蒙层效果
 */
- (void)removeClearView;

/**
 获取到竟赢
 */
- (void)get_didWin;
@end

NS_ASSUME_NONNULL_END
